// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

/**
 * 提现申请 列表
 * @param pram
 */
export function applyListApi(params) {
  return request({
    url: '/admin/finance/apply/list',
    method: 'get',
    params
  })
}

/**
 * 提现申请 金额
 * @param pram
 */
export function applyBalanceApi(params) {
  return request({
    url: '/admin/finance/apply/balance',
    method: 'post',
    params
  })
}

/**
 * 提现申请 修改
 * @param pram
 */
export function applyUpdateApi(params) {
  return request({
    url: '/admin/finance/apply/update',
    method: 'post',
    params
  })
}

/**
 * 提现申请 审核
 * @param pram
 */
export function applyStatusApi(params, data) {
  return request({
    url: '/admin/finance/apply/apply',
    method: 'post',
    params,
    data
  })
}

/**
 * 充值 列表
 * @param pram
 */
export function topUpLogListApi(params) {
  return request({
    url: '/admin/user/topUpLog/list',
    method: 'get',
    params
  })
}

/**
 * 充值 金额
 * @param pram
 */
export function balanceApi() {
  return request({
    url: '/admin/user/topUpLog/balance',
    method: 'post'
  })
}

/**
 * 充值 删除
 * @param pram
 */
export function topUpLogDeleteApi(params) {
  return request({
    url: '/admin/user/topUpLog/delete',
    method: 'get',
    params
  })
}

/**
 * 充值 退款
 * @param pram
 */
export function refundApi(data) {
  return request({
    url: '/admin/user/topUpLog/refund',
    method: 'post',
    data
  })
}

/**
 * 资金监控 列表
 * @param pram
 */
export function monitorListApi(params) {
  return request({
    url: '/admin/finance/founds/monitor/list',
    method: 'get',
    params
  })
}

/**
 * 资金监控 明细类型
 * @param pram
 */
export function monitorListOptionApi() {
  return request({
    url: `/admin/finance/founds/monitor/list/option`,
    method: 'get'
  })
}

/**
 * 佣金记录 列表
 * @param pram
 */
export function brokerageListApi(params) {
  return request({
    url: '/admin/finance/founds/monitor/brokerage/record',
    method: 'get',
    params
  })
}

/**
 * 佣金管理
 * @param pram
 */
export function brokerageList(params) {
  return request({
    url: '/brokerage/list',
    method: 'get',
    params
  })
}
/**
 * 列表详情信息
 * @param pram
 */
export function brokerageGetInfo(params) {
  return request({
    url: '/brokerage/getInfo',
    method: 'get',
    params
  })
}
/**
 * 生成佣金
 * @param pram
 */
export function brokerageSave(data) {
  return request({
    url: '/brokerage/save',
    method: 'post',
    data
  })
}


// 提现，出入金，佣金，补仓   列表、审核
/**
 * 提现列表
 */
export function walletbillWithdrewList(params) {
  return request({
    url: '/walletbill/withdrewList',
    method: 'get',
    params
  })
}
/**
 * 提现审核
 */
export function walletbillWithdrewCheck(data) {
  return request({
    url: '/walletbill/withdrewCheck',
    method: 'post',
    data
  })
}
/**
 * 出入金列表
 */
export function walletbillRechargeList(params) {
  return request({
    url: '/walletbill/rechargeList',
    method: 'get',
    params
  })
}
/**
 * 出入金审核
 */
export function walletbillCheck(data) {
  return request({
    url: '/walletbill/check',
    method: 'post',
    data
  })
}
/**
 * 佣金列表
 */
export function walletbillBrokerage(params) {
  return request({
    url: '/walletbill/brokerage',
    method: 'get',
    params
  })
}
/**
 * 佣金审核
 */
export function walletbillBrokerageReview(data) {
  return request({
    url: '/walletbill/brokerageReview',
    method: 'post',
    data
  })
}
/**
 * 补仓列表
 */
export function walletbillList(params) {
  return request({
    url: '/walletbill/list',
    method: 'get',
    params
  })
}
/**
 * 补仓审核
 */
export function walletbillUpdateFill(data) {
  return request({
    url: '/walletbill/updateFill',
    method: 'post',
    data
  })
}



// 资金监控
/**
 * 出入金总额
 */
export function walletbillRechargeAmount(params) {
  return request({
    url: '/walletbill/rechargeAmount',
    method: 'get',
    params
  })
}
/**
 * 出入金记录
 */
export function walletbillRechargeRecord(params) {
  return request({
    url: '/walletbill/rechargeRecord',
    method: 'get',
    params
  })
}
/**
 * 资金监控
 */
export function walletbillCapitalFlow(params) {
  return request({
    url: '/walletbill/capitalFlow',
    method: 'get',
    params
  })
}

/**
 * 数据场资金监控
 */
export function walletBillDataField(params) {
  return request({
    url: '/walletbill/walletBillCapitalFlow',
    method: 'get',
    params
  })
}
